package net.sunofbeach.blog.pojo.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author bing_  @create 2021/11/29-21:13
 */
@Data
@ApiModel(value = "UserQuery 对象", description = "用户查询条件")
public class UserQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "角色")
    private String role;

    @ApiModelProperty(value = "邮箱地址")
    private String email;

    @ApiModelProperty(value = "个人签名")
    private String sign;

    @ApiModelProperty(value = "状态：0表示删除，1表示正常；")
    private String state;

    @ApiModelProperty(value = "注册IP")
    private String regIp;

    @ApiModelProperty(value = "登录ip")
    private String loginIp;

    /**
     * 注意，这里使用的是String类型，前端传过来的数据无需进行类型转换
     */
    @ApiModelProperty(value = "查询开始时间", example = "2021-11-11 10:10:10")
    private String begin;

    @ApiModelProperty(value = "查询结束时间", example = "2021-11-11 10:10:10")
    private String end;

}
